package com.xyy.saas.payment.service.report.impl;

import com.xyy.saas.payment.dao.mapper.PayReportMapper;
import com.xyy.saas.payment.dao.model.PayCheckQueryParam;
import com.xyy.saas.payment.dao.model.PayReport;
import com.xyy.saas.payment.service.report.PayCheckQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zhangwenxiong
 * @Date 2020/10/22 16:18
 */
@Service
public class PayCheckQueryServiceImpl implements PayCheckQueryService {

    @Autowired
    private PayReportMapper payReportMapper;

    @Override
    public List<PayReport> queryAll(PayCheckQueryParam param) {
        return payReportMapper.queryByParam(param);
    }

    @Override
    public Long getTotal(PayCheckQueryParam param) {
        return payReportMapper.getTotal(param);
    }
}
